package com.yeyuanqi.hottop.mapper;

import com.yeyuanqi.hottop.entity.TTxhot;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeyuanqi.hottop.vo.HotListVO;
import com.yeyuanqi.hottop.vo.HotInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yeyuanqi
 * @since 2021-12-22
 */
@Mapper
public interface TTxhotMapper extends BaseMapper<TTxhot> {
    //查询最新的热搜
    public List<HotListVO> selectNewHot();

    //根据日期或者时间查询热搜
    public List<HotListVO> selectHotByTime(@Param("day") String day, @Param("min") String min);


    //每日热度最高的热搜
    public HotInfoVO selectDailyTopHOT();
}
